<template>
  <div class="container">
    <div class="header">
      <div class="back" @click="backHome()">
        <el-icon style="font-size: 22px; color: white"><HomeFilled /></el-icon>
      </div>
      <div class="tip">输入以开始你的事务</div>
    </div>
    <div class="main">
      <div style="display: inline-block; width: 50%; height: 80%">
        <div class="item">
          <div class="label">事务标题</div>
          <input type="text" class="input-box" />
        </div>
        <div class="item">
          <div class="label">事务内容</div>
          <textarea
            class="input-box"
            style="height: 140px; padding: 15px"
          ></textarea>
        </div>
      </div>
      <div style="display: inline-block; width: 50%; height: 80%">
        <div class="item">
          <div class="label">提醒时间</div>
          <!--          <el-date-picker-->
          <!--            v-model="valueDate"-->
          <!--            type="date"-->
          <!--            placeholder="Pick a Date"-->
          <!--            format="YYYY/MM/DD"-->
          <!--            value-format="YYYY-MM-DD"-->
          <!--          />-->
          <el-date-picker
            v-model="valueDate"
            type="datetime"
            placeholder="Select date and time"
            :default-time="defaultTime"
          />
        </div>
        <div class="item">
          <div class="label">提醒级别</div>
          <div
            class="input-box"
            style="background-color: white; height: 80px; width: 280px"
          >
            <el-radio-group
              v-model="radio"
              style="margin: 0 auto; margin-top: 20px"
            >
              <el-radio label="1" size="large">一般</el-radio>
              <el-radio label="2" size="large">重要</el-radio>
              <el-radio label="3" size="large">关键</el-radio>
            </el-radio-group>
          </div>
        </div>
      </div>
      <div class="submit"><div>+</div></div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()
const backHome = () => {
  router.push('/all-work')
}
const radio = ref(1)
const valueDate = ref('')
</script>

<style scoped>
.container {
}
.header {
  width: 100%;
  height: 38vh;
  padding: 10px;
}
.back {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #f8d57e;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 设置盒子阴影效果 */
  border-radius: 8px;
  margin-top: 30px;
  margin-left: 20px;
}
.tip {
  margin-top: 7%;
  margin-left: 15%;
  color: #f4b860;
  font-size: 56px;
  letter-spacing: 7px; /* 设置字符间距为2像素 */
}
.main {
  background-color: #f6f7fb;
  width: 100%;
  height: 62vh;
  padding: 10px;
}
.item {
  margin-left: 25%;
  margin-top: 10%;
  display: flex;
  align-items: flex-start;
}
.label {
  color: black;
  font-size: 20px;
  display: inline-block;
  margin-right: 20px;
}
.input-box {
  margin-left: 10px;
  width: 300px;
  height: 60px;
  border: none;
  outline: none;
  border-radius: 25px;
  padding-left: 20px;
  font-size: 16px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
.submit {
  width: 60px;
  height: 60px;
  background-color: #f8d57e;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 设置盒子阴影效果 */
  border-radius: 8px;
  margin: 0 auto;
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
